package cn.lanqiao.service.impl;

import cn.lanqiao.entity.Register;
import cn.lanqiao.service.RegisterService;

public class RegisterServiceImpl implements RegisterService {
	cn.lanqiao.dao.RegisterDao rdao = new cn.lanqiao.dao.impl.RegisterDaoImpl();
	@Override
	public int Checking(Register register) {
		String account = register.getAccount();
		@SuppressWarnings("unused")
		Register checkRegister = rdao.checkAccount(account);
		if(account==null) {
			return 0;
		}
		return rdao.writerUser(register);
	}

}
